﻿using System;

namespace AEM.Data.BLL.Users
{
    /// <summary>
    /// 用户登录成功的委托
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    public delegate void userLoginSuccessHandler(object sender, UserLoginSuccessArgs e);

    /// <summary>
    /// 用户登录成功携带的对象 
    /// </summary>
    public class UserLoginSuccessArgs : EventArgs, IDisposable
    {
        public long ID { get; set; }
        public string UserName { get; set; }
        public string UserPWD { get; set; }
        public long UserGroup { get; set; }
        public long UserPermission { get; set; }
        [Obsolete("过期,不再使用,默认值置0")]
        public string OperateLiftStatus { get; set; }
        public DateTime CreateDate { get; set; }
        public DateTime LastUpdatePwdDate { get; set; }
        public DateTime LastLoginDate { get; set; }

        #region IDisposable 成员

        public void Dispose()
        {
            this.Dispose();
        }

        #endregion
    }
}
